package work20240729.work2;

import java.time.LocalDateTime;

public class User {
    private String username;
    private String password;
    private int attemptCount;
    private LocalDateTime lockTime;
    private boolean isFrozen;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
        this.attemptCount = 0;
        this.lockTime = null;
        this.isFrozen = false;
    }

    // Getter and Setter methods
    public String getUser() {
        return username;
    }

    public String getPassword() {
        return password;
    }

    public int getAttemptCount() {
        return attemptCount;
    }

    public void setAttemptCount(int attemptCount) {
        this.attemptCount = attemptCount;
    }

    public LocalDateTime getLockTime() {
        return lockTime;
    }

    public void setLockTime(LocalDateTime lockTime) {
        this.lockTime = lockTime;
    }

    public boolean isFrozen() {
        return isFrozen;
    }

    public void setFrozen(boolean frozen) {
        isFrozen = frozen;
    }
}